package starlingTest
{
	import flash.display.Sprite;
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import starling.core.Starling;
	import starling.events.Event;
	
	public class Startup extends Sprite
	{
		private var mStarling:Starling;
		
		public function Startup()
		{
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			
			// create our Starling instance   
			mStarling = new Starling(Game, stage);
			
			// set anti-aliasing (higher the better quality but slower performance)   
			mStarling.antiAliasing = 1;
			mStarling.addEventListener(Event.CONTEXT3D_CREATE,initializeStarling)
			// start it!   
			mStarling.start ();
			
		
		}
		
		private function initializeStarling(e:Event):void 
		{
				var isHW:Boolean = Starling.context.driverInfo.toLowerCase().indexOf("software") == -1; 
	
		trace(isHW)	
		}
	
	}

}